set (gwbase_SRC
    http_util.cpp
    curl_wrapper.cpp
    byte_array.cpp
    base64.cpp
    encrypt/aes_helper.cpp
    encrypt/compress_helper.cpp
    encrypt/digest.cpp
    encrypt/enc_rand.cpp
    db/sqlite3_wrapper.cpp
    base/buffer.cpp
    base/condvar.cpp
    base/daemon.cpp
    base/countdown_latch.cpp
    base/conf.cpp
    base/crc32.cpp
    base/file_ops.cpp
    base/hash.cpp
    base/logging.cpp
    base/mutex.cpp
    base/status.cpp
    base/string_util.cpp
    base/test_harness.cpp
    base/thread.cpp
    base/thread_pool.cpp
    base/timestamp.cpp
    base/path.cpp
    base/util.cpp)

add_library(gwbase_static STATIC ${gwbase_SRC})
# target_link_libraries(gwbase_static 
#    spark_base pthread uuid ssl jsoncpp pcre sqlite3)

add_subdirectory(tests)
